ImageGear Professional v18.2 > User Guide > Getting Started > Displaying an Image with Scroll Bars |
The Filters sample program demonstrates how to add Image scrolling to your application. This example is based on ImageGear’s IG_dspl_scroll_get(), IG_dspl_scroll_set(), and IG_dspl_scroll_to() functions. If the size of the displayed image is larger than the viewable area of output device, ImageGear automatically gets and sets the scrolling position of the image within the area. The IG_dspl_scroll_get() function returns the minimum, maximum, and current scroll positions in both horizontal and vertical directions. The IG_dspl_scroll_to() function allows you to set a new scroll position.
Perform the following steps:
Copy Code
|
|
---|---|
XtSetArg( args[0], XmNorientation, XmHORIZONTAL ); |
Copy Code
|
|
---|---|
/****************************************************************************/ |
Copy Code
|
|
---|---|
/*****************************************************************************/ |
Copy Code
|
|
---|---|
XtManageChild( wHScrollbar ); |
Copy Code
|
|
---|---|
void ScrollUpdate() |